Please install R and RStudio by following the links below.
| Software | Link |
|---|---|
| R | https://cran.r-project.org/bin/windows/base/ |
| RStudio | https://www.rstudio.com/products/rstudio/download/#download |
For Windows Operating Systems, run the following code in the RGui, NOT in RStudio. The RGui should be installed when you install R. On my Windows machine, I access RGui by clicking on the R program file– my current file name is “R x64 3.6.2”.
Once you have the RGui open, copy and paste the R code below into the R Console window. Make sure R Studio is closed before running this code within the RGui. Hit enter once to install the installr package. Hit enter a second time to run the installer package function updateR() and follow the instructions.
This code was copied from: https://www.r-statistics.com/2013/03/updating-r-from-r-on-windows-using-the-installr-package/).
# installing/loading the package:
if(!require(installr)) {
install.packages("installr");
require(installr)
} #load / install+load installr
# using the package:
updateR()